package com.taca.controller.mobile;

import org.apache.shiro.SecurityUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.mvc.support.RedirectAttributes;

@Controller
@RequestMapping("mobile/page")
public class LoginMobileController {

    private static final Logger log = LoggerFactory.getLogger(LoginMobileController.class);

    @RequestMapping(value = "login", method = RequestMethod.GET)
    String login(Model model) {
        return "mobile/TaskList";
    }


    @RequestMapping("/logout")
    public String logout() {
        SecurityUtils.getSubject().logout();
        return "view/login/login";
    }
    @RequestMapping("index")
    public String index(){
        return "mobile/index";
    }
}
